<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.context.ISystemContext"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="org.limp.mine.RandomUtil"%>
<%@ page import="org.limp.basework.impl.CommonBean4HSQ"%>
<%
	String context = ISystemContext.getContextPath();
	IUser user = ISystemContext.getSessionUser(request);
	
	CommonBean4HSQ cbh = new CommonBean4HSQ(request);
	
	String queryKey = StringTool.checkString(cbh.getResource().get("queryKey"));
	//主键值
	String id = StringTool.checkString(cbh.getResource().get("id"));
	
	if(id.equals("")){
		//新建内容,随机生成id,用于关联上传的图片
		String uniqueid = RandomUtil.getRandomString(20, false);
		ISystemContext.createSessionObject(request, "INFOUNIQUEID", uniqueid);
	}else{
		//编辑内容,当前内容主键ID
		ISystemContext.createSessionObject(request, "INFOID", id);
	}
	
	//栏目id
	String cid = StringTool.checkString(cbh.getResource().get("cid"));
	//栏目名称
	String cname = StringTool.checkString(cbh.getResource().get("cname"));
	//栏目类型
	String ctype = StringTool.checkString(cbh.getResource().get("ctype"));
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>内容信息定义</title>
<jsp:include page="../../system/head.jsp"></jsp:include>
<script src="<%=context %>/system/tablequery/js/tablehandler.js"></script>
<script src="<%=context %>/system/wordbook/js/wbstore.js"></script>
<script>
		     var queryKey = "<%=queryKey%>";
		     var id = "<%=id%>";
		     var cid = "<%=cid%>";
		     var cname = "<%=cname%>";
		     var ctype = "<%=ctype%>";
		</script>
<script src="<%=context %>/app/cms/ckeditor/ckeditor.js"></script>
<script src="<%=context %>/app/cms/js/info.js"></script>
</head>
<body>
<div id="divstr" style="width:800px;600px;"></div>
</body>
</html>
